package com.wxzz.elearing.livetelecast.service.openfeign;

import com.wxzz.elearning.common.dto.ActivityStatisticsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@FeignClient(value = "2128-wxzz-pay-application")
public interface IUserOrderApiFeign {

    @RequestMapping(value = "/user-order-api/selectCountAmount/{platformLivetelecastId}/{onlineType}", method = RequestMethod.POST)
    BigDecimal selectCountAmount(@PathVariable Long platformLivetelecastId, @PathVariable Integer onlineType);

    @RequestMapping(value = "/user-order-api/selectActivityStatisticsDto/{activityId}", method = RequestMethod.POST)
    List<ActivityStatisticsDto> selectActivityStatisticsDto(@PathVariable Long activityId);

    @RequestMapping(value = "/wx-pay-api/orderPay", method = RequestMethod.POST,consumes = MediaType.APPLICATION_JSON_VALUE)
    Map orderPay(@RequestBody Map<String, String> map);

}
